<template>
  <el-aside>服务器id {{ props.serverId }}</el-aside>
  <el-main>
    <router-view />
  </el-main>
</template>

<script setup lang="ts">
// 获取路由携带的服务器id
const props = withDefaults(defineProps<{ serverId: string }>(), {
  serverId: () => "",
});
</script>

<style scoped>
.el-aside {
  position: relative;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 100%;
  background-color: #409eff;
}
</style>
